{include file="public_head" /}
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>
<body class="nav-md">
<div class="container body">
    <div class="main_container">
        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            {$mate_title}
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>member</small>-->
                                </h2>
                                <!--<a style="float: right" href="{:url('console/member/create')}"-->
                                <!--class="btn btn-success btn-sm">创建会员</a>-->
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="post" action="">
                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>用户账号</th>
                                            <th>用户名</th>
                                            <th>报名姓名</th>
                                            <th>身份证号</th>
                                            <th>手机号码</th>
                                            <th>申请时间</th>
                                            <th width="250">中奖设置</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {volist name="data" id="item"}
                                        <tr>
                                            <!--<td><input type="checkbox" name="id[]" value="{$item.id}"/></td>-->
                                            <td>{$item.id}</td>
                                            <td>{$item.login}</td>
                                            <td>
                                                {empty name="$item.nickname"}
                                                <b style="color: #6F6F6F;">用户未设置</b>
                                                {else /}
                                                {$item.nickname}
                                                {/empty}
                                            </td>
                                            <td>{$item.name}</td>
                                            <td>{$item.id_card}</td>
                                            <td>{$item.phone}</td>
                                            <td>{$item.create_time|date='Y-m-d H:i',###}</td>
                                            <input type="hidden" name="idd[]" value="{$item.id}"/>
                                            <td>  <select name="draw_prize[]" class="select2_single" {eq name="item.status" value="22"}disabled{/eq}
                                                          style="width:100%;" tabindex="-1"
                                                          datatype="*"
                                                          nullmsg="请选择规则栏目！" errormsg="请选择规则栏目！"
                                            >
                                                <option
                                                        value="0"

                                                >
                                                无
                                                </option>
                                                {volist name="draw" id="list"}
                                                <option
                                                        {eq name='list.id' value='$item.draw_prize|default=""'}selected{/eq}
                                                {eq name='list.id' value='$item.id|default=""'}disabled{/eq}

                                                value="{$list.id}"

                                                >

                                                {eq name="item.parent_id|default=''" value="0"}
                                                <span>&nbsp;</span>
                                                {else /}
                                                <span>&nbsp;</span>
                                                {/eq}

                                                {$list.title}
                                                </option>
                                                {/volist}
                                            </select></td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                        <tbody align="left">
                                        <!--<tr>-->
                                        <!--<td colspan="10"><span class="selArea"><span>控制：</span> <a-->
                                        <!--style="color:#428BCA"-->
                                        <!--href="javascript:DelAllNone('{:url(\'console/member/destroy\')}');"-->
                                        <!--onclick="return ConfDelAll(0);">选择删除</a></span></td>-->
                                        <!--</tr>-->
                                        </tbody>
                                    </table>
                                    <!-- 分页 -->
                                    <div style="float: right;margin-top: -30px;">{$data->render()}</div>
                                    <button type="button" class="btn btn-success" style="margin-top: 20px;" >人数统计：{$count}人</button>

                                    {neq name=":request()->action()" value="index2" }{notempty name="data"}<button type="submit" class="btn btn-info" style="margin-top: 20px;" >批量设置中奖用户</button>{/notempty}{/neq}
                                    <a type="button" class="btn btn-info" style="margin-top: 20px;" href="{:url('DrawTime/index')}">返回抽奖页面</a>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->
    </div>
</div>
{include file="public_foot" /}
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<script type="text/javascript">
    // list
    $(document).ready(function () {
        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });
    });
</script>
